package com.flyduck.system.vo.config.trans;


import cn.hutool.core.bean.BeanUtil;
import com.flyduck.system.entity.SysConfigEntity;
import com.flyduck.system.vo.config.SysConfigRespVO;
import com.google.common.base.Function;


/**
 * @program: flyduck-platform
 * @description:
 * @author: flyduck
 * @create: 2021-02-01 12:42
 **/
public class SysConfigEntityToSysConfigRespVO implements Function<SysConfigEntity, SysConfigRespVO> {

    @Override
    public SysConfigRespVO apply(SysConfigEntity entity) {
        SysConfigRespVO respVO = new SysConfigRespVO();
        BeanUtil.copyProperties(entity,respVO);
        respVO.setId(String.valueOf(entity.getId()));
        return respVO;
    }
}
